
export const registRouter = {
  path: '/register',
  name: 'register',
  meta: {
    title: '注册'
  },
  component: () => import('@/views/Register.vue')
};


export const registResult = {
  path: '/regist-result',
  name: 'regist-result',
  meta: {
    title: '注册结果'
  },
  component: () => import('@/views/RegisterResult.vue')
};

export const page403 = {
  path: '/403',
  meta: {
    title: '403-权限不足'
  },
  name: 'error-403',
  component: () => import('@/views/errorPage/403.vue')
};

export const page500 = {
  path: '/500',
  meta: {
    title: '500-服务端错误'
  },
  name: 'error-500',
  component: () => import('@/views/errorPage/500.vue')
};

export const scanIdCard = {
  path: "/scanIdCard",
  meta: {
    title: '扫描身份证'
  },
  name: "scanIdCard",
  component: () => import("../views/personInfo/ScanIDCard.vue"),
};

export const examRouter = {
  path: '/examList',
  name: 'examList',
  meta: {
    title: '我的考试'
  },
  component: () => import('@/views/exam/ExamList.vue'),
};
export const examShowListRouter = {
  path: '/examShowList',
  name: 'examShowList',
  meta: {
    title: '历史成绩'
  },
  component: () => import('@/views/exam/ExamShowList.vue'),
};
export const examShowRouter = {
  path: '/examShow',
  name: 'examShow',
  meta: {
    title: '我的成绩'
  },
  component: () => import('@/views/exam/ExamShow.vue'),
};

export const examDetailRouter = {
  path: '/examDetail',
  name: 'examDetail',
  meta: {
    title: '考试'
  },
  component: () => import('@/views/exam/ExamDetail.vue'),
};
export const indexRouter = {
  path: '/index',
  name: 'index',
  meta: {
    title: '基本信息'
  },
  component: () => import('@/views/Index.vue'),
};

export const home = {
  path: "/",
  name: "Login",
  meta: {
    title: '登陆'
  },
  component: () => import('../views/Login.vue'),
};

export const whiteList = [
  registRouter,
  registResult,
  page500,
  page403,
  scanIdCard,
  examRouter,
  examDetailRouter,
  examShowRouter,
  examShowListRouter,
  indexRouter,
]

// 所有上面定义的路由都要写在下面的routers里
export const routers = [
  ...whiteList,
  home,
];

